package cn.tedu.antconlonysever.contract.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Accessors(chain = true)
public class ContractAddNewParam implements Serializable {

    @NotNull(message = "必须提交客户名称")
    @ApiModelProperty(value = "合同名称",required = true,example = "xxx有限公司")
    private String cusName;
    @NotNull(message = "必须提交合同标题")
    @ApiModelProperty(value = "合同标题",required = true,example = "销售合同")
    private String title;
    @NotNull(message = "必须提交合同金额")
    @ApiModelProperty(value = "合同金额",required = true,example = "10000.00")
    private BigDecimal contractMoney;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractEndDate;
    private String remark;
    private String contractType;
    private String partnerName;
}
